﻿// -----------------------------------------------------------------------
// <copyright file="NetworkTreeExpandButton.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace TouchControls
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Controls.Primitives;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class NetworkTreeExpanderButton : ButtonBase
    {
        protected override void OnClick()
        {
            var tree = this.FindParent<NetworkTree>();
            if (tree != null)
            {
                tree.Toggle();
            }
        }
    }
}
